package com.jhws.business.appconfig.bo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * APP通用配置信息表，动态配置如APP端WEB服务器，SIP服务器等
 */
@Table(name = "app_config_info")
@Entity
public class AppConfigInfo {
    @Id
    @Column(name = "id")
    private String id; //主键
    @Column(name = "name")
    private String name; //配置名称
    @Column(name = "type")
    private String type; //配置类型
    @Column(name = "content", columnDefinition = "text")
    private String content; //配置内容 json:[{"typeName":"WEB服务器","typeKey":"webServer","valueName":"家和正式服务器","typeValue":"http://app.jhws.top:8081/"}]
    @Column(name = "device_type")
    private String deviceType; //设备类型
    @Column(name = "update_time")
    private Date updateTime; //更新时间
    @Column(name = "description")
    private String description;// 描述


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "AppConfigInfo{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", content='" + content + '\'' +
                ", deviceType='" + deviceType + '\'' +
                ", updateTime=" + updateTime +
                ", description='" + description + '\'' +
                '}';
    }
}
